//
//  TollStationChargeListModel.m
//  Runone
//
//  Created by ekkaLyn on 2017/4/21.
//  Copyright © 2017年 runone. All rights reserved.
//

#import "TollStationChargeListModel.h"
#import <UIKit/UIKit.h>
@implementation TollStationChargeListModel

-(void)setChargeAmount:(NSString*)ChargeAmount
{
    CGFloat TotalChargeFl=[ChargeAmount floatValue];
    if (0.0<=TotalChargeFl&&TotalChargeFl<100000.0) {
        _ChargeAmount=[NSString stringWithFormat:@"%.2f元",TotalChargeFl];
    }
    else if (100000.0<=TotalChargeFl&&TotalChargeFl<100000000.0)
    {
        
        _ChargeAmount=[NSString stringWithFormat:@"%.2f万元",TotalChargeFl/10000.0];
    }
    else if (TotalChargeFl>=100000000.0)
    {
        _ChargeAmount=[NSString stringWithFormat:@"%.2f亿元",TotalChargeFl/100000000.0];
    }

    
}

-(void)setExportTrafficFlow:(NSString*)ExportTrafficFlow
{
    NSInteger TotalChargeFl=[ExportTrafficFlow integerValue];
    if (0.0<=TotalChargeFl&&TotalChargeFl<100000.0) {
        _ExportTrafficFlow=[NSString stringWithFormat:@"%ld车次",(long)TotalChargeFl];
    }
    
    else if (100000.0<=TotalChargeFl&&TotalChargeFl<100000000.0)
    {
        
        _ExportTrafficFlow=[NSString stringWithFormat:@"%.2f万车次",TotalChargeFl/10000.0];
    }
    else if (TotalChargeFl>=100000000.0)
    {
        _ExportTrafficFlow=[NSString stringWithFormat:@"%.2f亿车次",TotalChargeFl/100000000.0];
    }

    
}


@end
